package com.zzw.service.Impl;

import com.zzw.bean.Admin;
import com.zzw.bean.AdminExample;
import com.zzw.dao.AdminMapper;
import com.zzw.service.AdminService;
import org.apache.commons.codec.digest.Md5Crypt;
import org.apache.commons.compress.harmony.unpack200.bytecode.forms.IincForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import sun.security.provider.MD5;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.List;

/**
 * @author 赵志伟
 * @version 1.0
 */
@SuppressWarnings({"all"})
@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin login(Admin admin) {
        admin = adminMapper.selectAdminByUsernameAndPassword(admin);
        return admin;
    }
}
